package com.yvtian.admin.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yvtian.admin.pojo.SysDept;

import java.util.ArrayList;

/**
 * (sys_dept)表服务接口
 *
 * @author long
 * @since 2024-04-06 14:28:54
 */
public interface SysDeptService extends IService<SysDept> {

    IPage<SysDept> findByPage(Page<SysDept> page, SysDept sysDept);

    /**
     * 递归查询当前部门及其子部门
     * @param deptId 部门Id
     * @return list
     */
    ArrayList<SysDept> recursionDept(Integer deptId);
}

